package com.alibaba.aone.casestudy.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.aone.casestudy.common.entity.Action;
import com.alibaba.aone.casestudy.service.ActionService;
import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.dataresolver.Param;

public class ActionDetailView {
	@Autowired
	private ActionService actionService;

	public void execute(Context context, @Param("actionNo") String actionNo) {
		// List<Action> actions = actionService.listActions();
		Action action = actionService.getActionByNumber(actionNo);
		context.put("action", action);
	}
}